package com.xucranger.ojapi.enity.DTO.common;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 分页基础参数
 *
 * @author lihaifan
 * @Date Created in 2017/10/28 16:19
 */
@Data
public class PageParamDTO {

    @NotNull(message = "分页参数不能为空")
    protected Integer pageNum;

    @NotNull(message = "每页数量不能为空")
    @Max(value = 500, message = "每页最大为500")
    protected Integer pageSize;

    protected Boolean searchCount;
    protected List<OrderItemDTO> orders;



}
